
	
		<?php $_from = $this->_var['cat_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['cat_goods_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat_goods_list']['total'] > 0):
    foreach ($_from AS $this->_var['goods']):
        $this->_foreach['cat_goods_list']['iteration']++;
?>		

		<?php if (($this->_foreach['cat_goods_list']['iteration'] - 1) < 5): ?>
		<a href="<?php echo $this->_var['goods']['url']; ?>"><img src="<?php echo $this->_var['goods']['thumb']; ?>" alt="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>" /></a>
		<?php else: ?>
		<a href="<?php echo $this->_var['goods']['url']; ?>"><img src="<?php echo $this->_var['goods']['thumb']; ?>" alt="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>" class="Shmllimg" /></a>
		 <?php endif; ?>
	
 
 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
